//
//  blackjackAppDelegate.m
//  blackjack
//
//  Created by Thi Nguyen Tran on 3/13/10.
//  Copyright Epsilon 2010. All rights reserved.
//

#import "blackjackAppDelegate.h"
#import "MusicManager.h"
#import "SoundManager.h"

@interface blackjackAppDelegate (Private)

- (void)loadMusic;
- (void)loadSound;

@end
@implementation blackjackAppDelegate

@synthesize window;


- (void)applicationDidFinishLaunching:(UIApplication *)application {    
	//[application setStatusBarOrientation:UIInterfaceOrientationLandscapeRight];
	
	[[UIApplication sharedApplication] setStatusBarHidden:YES];
	
	[self loadMusic];
	[self loadSound];
	
	mainController_ = [[MainViewController alloc] init];
    // Override point for customization after application launch
    [window makeKeyAndVisible];
	[window setUserInteractionEnabled:YES];
	[window addSubview:mainController_.view];
}


- (void)loadMusic {
}

- (void)loadSound {
	//[SoundManager addSoundTrack:@"touch_menu_item" type:@"wav" name:@"MenuItem"];
//	[SoundManager addSoundTrack:@"touch_new_card" type:@"wav" name:@"NewCard"];
//	[SoundManager addSoundTrack:@"touch_new_deck" type:@"wav" name:@"NewDeck"];
}

- (void)dealloc {
    [window release];
    [super dealloc];
}


@end
